package com.example.flashsales.entity.dto;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


/**
 * 商品的数据
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class GoodsDto {
    //插入返回的id
    private long id;
    //商品编号
    private long productNumber;
    //商品名称
    private String name;
    //商品价格
    private double price;
    //商品类别
    private Integer typeId;
    //商品数量
    private double count;
    //商品的图片地址
    private String url;
    //商品细节id
    private long detailsId;
    //商品描述
    private String details;



    public GoodsDto(String name, double price, Integer typeId, double count, String details) {
        this.name = name;
        this.price = price;
        this.typeId = typeId;
        this.count = count;
        this.details = details;
    }
}
